﻿using ProtoBuf;
using System.Collections.Generic;

namespace Ayatta.Contract.Domain
{
    [ProtoContract]
    public class CategoryProp : IEntity<int>
    {
        [ProtoMember(1)]
        public int Id { get; set; }
        [ProtoMember(2)]
        public int CategoryId { get; set; }
        [ProtoMember(3)]
        public string Name { get; set; }
        [ProtoMember(4)]
        public int ParentPid { get; set; }
        [ProtoMember(5)]
        public int ParentVid { get; set; }
        [ProtoMember(6)]
        public bool IsSaleProp { get; set; }
        [ProtoMember(7)]
        public bool IsKeyProp { get; set; }
        [ProtoMember(8)]
        public bool IsColorProp { get; set; }
        [ProtoMember(9)]
        public bool Required { get; set; }
        [ProtoMember(10)]
        public bool AllowAlias { get; set; }
        [ProtoMember(11)]
        public int Order { get; set; }
        [ProtoMember(12)]
        public PropType Type { get; set; }
        [ProtoMember(13)]
        public string ChildTemplate { get; set; }
    }
    public enum PropType
    {
        Text=0,
        Optional,
        OptionalText,
        MultiCheck,
        MultiCheckText
    }
}